.index {
  width: 100%;
  background-color: #eee;
  min-height: 100vh;
  padding-bottom: 40px;
  position: relative;
  .header {
    position: relative;
    background-color: #cd423a;
    .title-box{
      padding:0px 8px;
      color:#FFEAA5;
      .title{
        font-size: 24px;
        font-weight: 900;
        // css 斜体
        font-style: italic;
      }
      .info{
        font-size: 14px;
        margin-left: 13px;
        font-weight: lighter;
      }
    }
    .intro{
      width: 100%;
      height: 80px;
      position: relative;
      background: transparent;
      padding-top:1px;
      background-image: url(https://wanhuhealth.oss-cn-beijing.aliyuncs.com/static/whjk-minProgram/images/cityDrugStore/top-banner-bg.png);
      background-position: bottom;
      background-color: #cd423a;
      padding-bottom: 20px;
      .bg{
        position: absolute;
        bottom:14px;
        left: 0px;
        width: 100%;
      }
      .txt{
        margin-top: 24px;
        padding:0px 18px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        color:white;
        .t-left{
          font-weight: bold;
          font-size: 18px;
          line-height: 24px;
          
        }
        .t-line{
          height: 40px;
          width: 1px;
          background-color: white;
        }
        .t-right{
          .t-r-1{
            font-size: 18px;
            line-height: 24px;
            color:white;
            font-weight: bold;
            display: flex;
            align-items: center;
            justify-content: space-between;
          }
          .t-r-2{
            font-size: 14px;
            color:#f5f5f5;
          }
        }
      }
    }
  }
  .user{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding:0px 16px;
    margin-top: -10px;
    position: relative;
    z-index: 1;
    .info{
      display: flex;
      align-items: center;
      justify-content: flex-start;
      .avatar{
        width: 72px;
        height: 72px;
        background-color: white;
        padding:2px;
        box-sizing: border-box;
        border-radius: 72px;
        overflow: hidden;
        .avatar-img{
          width: 100%;
          height: 100%;
        }
      }
      .phone{
        font-size: 16px;
        margin-left: 8px;
      }
    }
    .jf{
      font-size: 12px;
      color:#666;
      .txt{
        margin-right: 8px;
        
      }
      .icon{
        margin-top: -2px;
      }
    }
  }
  .icon-panel{
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding:0px 16px;
    .icon-item{
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      .img-wrap{
        width: 54px;
        height: 54px;
        box-sizing: border-box;
        border-radius: 54;
        overflow: hidden;
        .img{
          width: 100%;
          height: 100%;
        }
      }
      .title{
        text-align: center;
        margin-top: 10px;
        font-size: 16px;
        color: #111;
        font-weight: 5000;
      }
      .desc{
        margin-top: 4px;
        font-size: 14px;
        color:#666
      }
      .btn{
        margin-top: 4px;
        width: 60px;
        height: 22px;
        line-height: 22px;
        background: #E83A2F;
        text-align: center;
        color: white;
        border-radius: 22px;
      }
    }
  }
  .claim{
    position: relative;
    margin: auto;
    margin-top: 64rpx;
    width: calc(100% - 64rpx);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border-radius: 8rpx;
    overflow: hidden;
    
    .year{
      position: absolute;
      top:16rpx;
      left: 16rpx;
      color:white;
      font-weight: bold;
    }
    
    .btn-link{
      position: absolute;
      bottom:16rpx;
      right: 16rpx;
      color:white;
      font-weight: bold;
    }
    .banner{
      text-align: center;
      font-size: 0rpx;
      width: 100%;
      background-color: white;
      .img{
        width: 100%;
      }
    }
  }
  .donation{
    position: relative;
    margin: auto;
    margin-top: 32rpx;
    width: calc(100% - 64rpx);
    box-sizing: border-box;
    border-radius: 8rpx;
    overflow: hidden;
    background-color: white;
    .banner{
      background-color: #111;
      height: 200rpx;
      color: white;
    }
    .btn-group{
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 80rpx;
      flex: 1;
      .btn{
        text-align: center;
        height: inherit;
        line-height: 80rpx;
        width: 100%;
      }
      .line{
        width: 1px;
        height: inherit;
        background-color: #eee;
      }
    }
  }

  .service{
    margin-top: 32rpx;
    padding:0px 16px;
    .title{
      font-size: 24px;
      color:#111;
      font-weight: 500;
    }
    .img-group{
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: 12px;
      .img-wrap{
        width:166px;
        height: 115px;
        border-radius: 8px;
        overflow: hidden;
        .img{
          width: 100%;
          height: 100%;
        }
      }
    }
  }
 
  .page-content{
    width: 100%;
    padding:0px 16px;
    box-sizing: border-box;
    margin:auto;
    margin-top: 10px;
    
    .family{
      width: 100%;
      margin: auto;
      position: relative;
      box-sizing: border-box;
      overflow: hidden;
      border-radius: 8px;
      box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.07);
      
      
      .family-header{
        height: 60px;
        background-color: #FFE5CF;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
        padding:0px 16px 0px 20px;
        box-sizing: border-box;
        overflow: hidden;

        .title{
          font-size: 20px;
          font-weight: bold;
          color:#222;
        }
        .ins-btn{
          display: flex;
          align-items: center;
          justify-content: center;
          border-radius: 20px;
          overflow: hidden;
          background-color: #E83B2F;
          padding:10px 14px;
          .ins-btn-text{
            font-size: 16px;
            color: white;
            margin-right: 10px;
          }
        }
      }
      .family-content{
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 80px;
        background-color: white;
        .content-left{
          display: flex;
          align-items: center;
          justify-content: flex-start;
          .info{
            color:#222;
            margin-right: 30px;
            .danger{
              font-size: 20px;
              color:#E83B2F;
              margin-left: 20px;
              margin-right: 3px;
              font-weight: bold;
            }
          }
        }
        .content-right{
          color:#E83B2F;
          margin-right: 16px;
        }
      }
    }
 
    .account{
      margin-top: 36px;
      .account-header{
        .title{
          font-size: 24px;
          font-weight: 500;
          color:#111;
        }
      }
      .account-type{
        margin-top: 16px;
        .type-list{
          display: flex;
          align-items: center;
          justify-content: flex-start;
          .type-item{
            color:#666;
            margin-right: 20px;
            &:last-child{
              margin-right: 0px;
            }
            &.active{
              color:#111;
              font-weight: bold;
            }
          }
        }
      }
      .account-content{
        margin-top: 10px;
        .jifen-item{
          margin-top: 12px;
          width: 100%;
          border-radius: 8px;
          overflow: hidden;
          background-color: white;
          padding:12px;
          box-sizing: border-box;
          display: flex;
          align-items: center;
          justify-content: flex-start;

          .jifen-item-left{
            width: 96px;
            height: 96px;
            border-radius: 4px;
            margin-right: 12px;
            border:1px solid #eee;
            flex-shrink: 0;
            .img{
              width: 100%;
              height: 100%;
            }
          }

          .jifen-item-right{
            width: calc(100% - 96px - 12px);
            .title{
              font-size: 18px;
              color:#111;
              font-weight: 500;
            }
            .jifen-num{
              margin-top: 10px;
              padding:0px 4px;
              background: #FFDEDA;
              text-align: center;
              height: 24px;
              line-height: 24px;
              box-sizing: border-box;
              color: #E83A2F;
              font-size: 16px;
              display: inline-block;
              border-radius: 24px;

            }
            .btn{
              margin-top: 10px;
              width: 88px;
              height: 28px;
              line-height: 28px;
              background: #E83A2F;
              color:white;
              text-align: center;
              font-size: 14px;
              border-radius: 28px;
              margin-left: auto;
              margin-right: 0px;
              &.complete{
                opacity: 0.3;
              }
            }
          }
          .jifen-item-header{
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding:0px 12px;

            .left{
              display: flex;
              align-items: center;
              justify-content: flex-start;
              .name{
                font-weight: bold;
                max-width: 160px;
                flex-shrink: 0;
                word-break: keep-all;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
              }
              .num{
                // font-size: 24px;
                color:#E83B2F;
                margin-left: 10px;
                font-weight: bold;
              }
            }
            .right{
              padding:5px 10px;
              border-radius: 8px;
              text-align: center;
              background-color: rgba(232,59,47,0.1);
              color:#E83B2F;
              flex-shrink: 0;
              &.finished{
                background-color: rgba(103,194,58,0.1);
              }
              .complete{
                
                color:rgba(103,194,58,1);
              }
              .pending{
              }
            }
          }
        }
        .jifen-item-content{
          margin-top: 10px;
          height: 120px;
          .image{
            width: 100%;
            height: 120px;
          }
        }
      }
    }
  }
}
